package com.common.command.handler;

import com.common.message.vo.CommandType;

public abstract class DataUploadHandler implements IHandler {

    @Override
    public  byte[] dataUpload(byte[] message){

        this.bodyHandler(message);
        String returnMessage = "OK";
        byte[] byteArray = returnMessage.getBytes();
        return this.returnMessage("OK",CommandType.DEEP_PINE_DATA_UPLOAD.getCode());
    }

    public abstract void bodyHandler(byte[] message);

    public abstract byte[] returnMessage(String returnMessage,byte commandType);
}
